<?xml version="1.0" encoding="UTF-8" ?>
<%@page import="com.baoyanghui.common.InterfaceAccess"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<% 
	String errorMessage = (String)session.getAttribute("error_message"); 
	session.removeAttribute("error_message");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="../css/style.css"/>
		<script type="text/javascript" src="../js/register.js"></script>
		<title>宝养汇</title>
	</head>
	<body onload="saveWSContextPath('<%= request.getContextPath() %>', '<%= InterfaceAccess.InterfaceContext %>');">
		<jsp:include page="../common/header.jsp"></jsp:include>
		<div id="div_content">
			<div style="width: 984px; height: 5px; background: url('<%= request.getContextPath() %>/image/bg_register_top.png');"></div>
			<div align="left" style="width: 984px; background: url('<%= request.getContextPath() %>/image/bg_register.png');">
				<h1 style="padding: 10px;">立即注册宝养汇</h1>
				<form id="frm_register" action="<%= request.getContextPath() %>/merchant/register" method="post">
					<div style="width: 500px; float: left; line-height: 50px; margin-left: 20px;">
						<label>*商户ID：</label><input type="text" name="user_id" id="user_id" maxlength="20" onblur="checkUserId(this.value);"
							title="4~20位英数字符"/><br/>
						<label>*密码：</label><input type="password" name="password" id="password" maxlength="20" onblur="checkPassword(this.value);"
							title="4~20位英数字符"/><br/>
						<label>*确认密码：</label><input type="password" id="confirm_pwd" maxlength="20" onblur="checkConfirmPwd(this.value);"/><br/>
						<label>*邮箱：</label><input type="text" name="email" id="email" maxlength="50" onblur="checkEmail(this.value);"/><br/>
						<label>*公司名称：</label><input type="text" name="corporation_name" id="corporation_name" maxlength="50" onblur="checkCorporationName(this.value);"/><br/>
						<label>*固定电话：</label><input type="text" name="office_phone" id="office_phone" maxlength="20" onblur="checkOfficePhone(this.value);"/><br/>
						<label>手机号：</label><input type="text" name="mobile" id="mobile" maxlength="20"/><br/>
					</div>
					<div style="width: 400px; float: left;">
						<object id="flash_upload" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540002"
							type="application/x-shockwave-flash" width="119" height="34">
						  <param name="movie" value="<%= request.getContextPath() %>/flash/upload.swf?ws_context=<%= InterfaceAccess.InterfaceContext %>" />
						  <param name="quality" value="high" />
						  <param name="wmode" value="transparent"/>
						  <embed src="<%= request.getContextPath() %>/flash/upload.swf?ws_context=<%= InterfaceAccess.InterfaceContext %>" 
						  	wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" 
						  	allowScriptAccess="sameDomain" allowFullScreen="false"
						  	type="application/x-shockwave-flash" width="119" height="34">
						  </embed>
						</object><br/>
						<img id="img_merchant" src="" alt="" width="165px" height="90px"/><br/>
						<label style="text-align: left; margin-top: 15px;">商家简介：</label><br/>
						<textarea rows="5" name="introduction" id="introduction"></textarea><br/>
					</div>
					<div style="clear: both;"></div>
					<div align="left" style="margin-left: 350px; margin-top: 35px;">
						<input type="hidden" id="image_name" name="image_name"/>
						<input type="radio" id="agreement" name="agreement"/>
						<span>我已经阅读并同意<a class="blue">《注册协议》</a></span><br/>
						<img class="fade_effect" src="<%= request.getContextPath() %>/image/btn_next.png" alt="" 
							onclick="mechantRegister();" style="margin-top: 10px; cursor: pointer;"/><br/>
					</div>
					<span id="error_message"><%= errorMessage == null ? "" : errorMessage %></span>
				</form>
			</div>
			<div style="width: 984px; height: 7px; background: url('<%= request.getContextPath() %>/image/bg_register_bottom.png');"></div>
		</div>
	</body>
</html>